import random
from setup import *

class Food(BaseBox):
    def __init__(self):
        self.x=random.randint(0,GRID[0]-1)
        self.y=random.randint(0,GRID[1]-1)
        super().__init__((self.x,self.y),GREEN)

    def next_point(self):
        self.x=random.randint(0,GRID[0]-1)
        self.y=random.randint(0,GRID[1]-1)


